//
//  CollectionViewCell2.m
//  BAOASystem
//
//  Created by michael on 2018/1/25.
//  Copyright © 2018年 czd. All rights reserved.
//

#import "CollectionViewCell2.h"

@implementation CollectionViewCell2

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)layoutSubviews{
[super layoutSubviews];
[_imagename sd_setImageWithURL:[NSURL URLWithString:_dic[@"fileurl"]] placeholderImage:[UIImage imageNamed:@"加载"]];
_titlename.text = _dic[@"title"];
if (![_dic[@"isPrice"] isEqualToString:@"0"]) {
//商品详情-价格面议
NSString *money =NSLocalizedString(@"钱", nil);
    _pricetitle.text =[NSString stringWithFormat:@"%@%@",money,_dic[@"price"]] ;
}else{
    _pricetitle.text =NSLocalizedString(@"商品详情-价格面议", nil);
}

if (![_dic[@"sourceArea"] isEqual:[NSNull null]]) {
        _fromtitle.text =[NSString stringWithFormat:@"%@:%@",NSLocalizedString(@"产地", nil),_dic[@"sourceArea"]] ;
}
}

@end
